package cn.tedu.antconlonysever.contract.dao.persist.repository;

import cn.tedu.antcolonycommons.pojo.vo.PageData;
import cn.tedu.antconlonysever.contract.pojo.entity.Order;
import cn.tedu.antconlonysever.contract.pojo.entity.OrderDetails;
import cn.tedu.antconlonysever.contract.pojo.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface IOrderDetailsRepository {
    int insert(OrderDetails orderDetails);
    int insertBatch(List<OrderDetails> orderDetailsList);
    int deleteById(Long id);
    int deleteByIds(Collection<Long> idList);
    int update(OrderDetails orderDetails);
    int count();
    int countOrderId(Long orderId);
    int countOrderIdNotId(@Param("id")Long id, @Param("order_id") Long orderId);
    OrderDetailsStandardVO getStandardById(Long id);
    PageData<OrderDetailsListVO> list(Integer pageNum, Integer pageSize);
}
